package de.gameduell.framework.facebook {
	import flash.geom.Point;

	public class FBBaseAppLayout {
		private static var instance:FBBaseAppLayout;
		
		private var _contentPosition:Point;
		private var _currentYOffset:int = 0;
		private var _currentXOffset:int = 0;
		
		public static function getInstance():FBBaseAppLayout {
			if(instance == null) {
				instance = new FBBaseAppLayout();
			}
			return instance;
		}

		public function FBBaseAppLayout() {
			_contentPosition = new Point(0,0);
		}
		
		public function set contentPosition(aPoint:Point):void {
			_contentPosition = aPoint;
		}
		
		public function get contentPosition():Point {
			return new Point(_contentPosition.x + _currentXOffset, _contentPosition.y + _currentYOffset);
		}
		
		public function set currentXOffset(newX:int):void {
			_currentXOffset = newX;
		}
		
		public function set currentYOffset(newY:int):void {
			_currentYOffset = newY;
		}
		
		public function get currentXOffset():int {
			return _currentXOffset;
		}
		
		public function get currentYOffset():int {
			return _currentYOffset;
		}
	}
}